From f1dae440753b7d36346b0e0a516f69b3ff5d1546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= <12514511+RincewindsHat@users.noreply.github.com> Date: Sat, 9 Nov 2024 11:26:09 +0100 Subject: Fix false formatting directive in printf diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 1d27da2..8ea73ce 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -525,7 +525,7 @@ int check_http(void) { // use the host_name later on to make SNI happy if (use_ssl && host_name != NULL) { if ((res = lookup_host(server_address, addrstr, DEFAULT_BUFFER_SIZE / 2)) != 0) { - snprintf(msg, DEFAULT_BUFFER_SIZE, _("Unable to lookup IP address for '%s': getaddrinfo returned %d - %d"), server_address, res, + snprintf(msg, DEFAULT_BUFFER_SIZE, _("Unable to lookup IP address for '%s': getaddrinfo returned %d - %s"), server_address, res, gai_strerror(res)); die(STATE_CRITICAL, "HTTP CRITICAL - %s\n", msg); } -- cgit v0.10-9-g596f